package com.it.service;

import com.it.bean.TopicBean;
import com.it.dao.TopicDao;

import java.util.List;

public class TopicServcieImpl implements TopicServcie {

    public TopicDao topicDao;

    @Override
    public void addTopic(TopicBean topicBean) throws Exception {
        topicDao.addTopic(topicBean);
    }

    @Override
    public List<TopicBean> getTopicListByUid(Integer uid) throws Exception {
        return topicDao.getTopicListByUid(uid);
    }

    @Override
    public void deleteTopic(TopicBean topicBean) throws Exception {
        topicDao.deleteTopic(topicBean);
    }

    @Override
    public TopicBean getTopicById(Integer topicId) throws Exception {
        return topicDao.getTopicById(topicId);
    }
}
